<extend name="Public/base"/>
<block name="body">
<style>
ul,li{list-style: none;}
.jw-nav{ margin-left: 0px;}
 .jw-nav li{float: left; margin: -10px 12px 10px 12px; }
</style>
<div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
            <h5>{$meta_title}</h5>
             <div class="buttons">
              <a class="btn btn-mini"  href="{:U('Add',array('pid'=>I('pid'),'type'=>I('type')))}">新增</a>          
             </div>
           </div>
          <div class="widget-content ">
            <ul class="nav nav-tabs">
             <volist name="Think.config.PRO_LIST_TYPE" id="newsType">
               <li <if condition="$news_id eq $key">class="active"</if> ><a href="{:U('Index',array('type'=>$key))}">{$newsType}</a></li>
              </volist>
            </ul>
            <ul class="jw-nav">
               <volist name="listClass" id="l">
                  <li><a href="{:U('Index',array('pid'=>$l['id'],'type'=>$l['type']))}">{$l.title}</a></li>
               </volist>   
            </ul>
            <table class="table table-bordered table-striped with-check">
                <thead>
                <tr>
                    <td>ID</td>
                    <td>图片</td>
                    <td>名称</td>
                    <td>发布时间</td>
                    <td>语言</td>
                    <td>操作员</td>
                    <td>状态</td>
                    <td>操作</td>
                </tr>
              </thead>
              <tbody>
                 <volist name="list" id="vo">
                    <tr>
                    <td>{$vo.id}</td>
                    <td><img src="__ROOT__/Uploads/Editor/{$vo.pic}" border="0" style="height:35px; width:35px;" /></td>
                    <td>{$vo.title}</td>
                    <td>{$vo.create_time|date='Y-m-d',###}</td>
                    <td><if condition="$vo['lang'] eq 'zh-cn'"><img src="__IMG__/zh-cn.png"><else/><img src="__IMG__/en-us.png" ></if></td>
                    <td>{$vo.userId|get_user}</td>
                    <td><if condition="$vo['status']">开启<else/>关闭</if></td>
                    <td><a href="{:U('Edit',array('id'=>$vo['id']))}">编辑</a> | <a href="{:U('Del',array('id'=>$vo['id']))}">删除</a></td>
                    </tr>
                 </volist>
              </tbody>
            </table>
          </div>
        </div>
</block>












